package com.shhot.blog.console.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.shhot.blog.Service.CategoryService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by MYQ on 2018/10/19.
 */
@Controller
@RequestMapping("/category")
public class CategoryController {

    @Reference
    private CategoryService categoryServer;

    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        return categoryServer.getName("asd");
    }
}
